<div class="widget-box">
<div class="widget-header widget-header-blue widget-header-flat">
	<h4 class="lighter"><?php echo $model->isNewRecord ? 'Create Business' : 'Update Business'?></h4>
</div>
<div class="widget-body" style="padding-top: 20px;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'business-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal'),
)); ?>

	<?php echo $form->errorSummary($model, null, null, array('class'=>'alert alert-error')); ?>

	<div class="control-group">
		<?php echo $form->labelEx($model,'name', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model,'name',array('class'=>'business_input')); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'address', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model,'address',array('class'=>'business_input')); ?>
		</div>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'state_id', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->dropDownList($model,'state_id', CHtml::listData(States::model()->findAll(), 'id', 'name')); ?>
		</div>
	</div>

    <div class="control-group">
        <?php echo $form->labelEx($model,'source', array('class'=>'control-label')); ?>
        <div class="controls">
            <?php echo $form->textField($model,'source',array('class'=>'business_input')); ?>
        </div>
    </div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'status', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->dropDownList($model,'status_ready', array('0'=>'Disabled', '1'=>'Ready')); ?>
		</div>
	</div>

	<div class="form-actions" style="background-color: white;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class'=>'btn btn-primary')); ?>
	</div>

<?php $this->endWidget(); ?>

</div>
</div><!-- form -->